import {axios} from '@/utils/request'

export const  indexConf = function(data) {
  return axios({
    url: 'mochat/index/conf',
    method: 'get',
    params: data
  })
}

// 获取授权链接
export const  createUrl = function(data) {
  return axios({
    url: 'mochat/index/create-url',
    method: 'get',
    params: data
  })
}
//设置scrm系统api链接地址
export const  setConfMochatUrl = function(data) {
  return axios({
    url: 'mochat/index/set-conf-mochat-url',
    method: 'post',
    data: data
  })
}
//接收人列表
export const  employeeList = function(data) {
  return axios({
    url: 'mochat/index/employee-list',
    method: 'post',
    data: data
  })
}
//接收人列表
export const  setConf = function(data) {
  return axios({
    url: 'mochat/index/set-conf',
    method: 'post',
    data: data
  })
}

export default {
  indexConf,
  createUrl,
  setConfMochatUrl,
  employeeList,
  setConf
}

